package com.lx.remote;

import com.lx.fallback.HelloRemoteFallBack;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 段誉
 * @create 2019-07-09 17:23
 */
@FeignClient(name = "spring-cloud-producer", fallback = HelloRemoteFallBack.class)
public interface HelloRemote {
  @GetMapping("/hello")
  String hello(@RequestParam("name") String name);
}
